﻿using System.Web.Security;
using ENail.Domain.Core;
using ENail.Domain.Core.Contract.Services;

namespace ENail.ApplicationServices
{
    public class FormsAuthenticationService : IFormsAuthenticationService
    {
        public void SignIn(User user, bool createPersistentCookie)
        {
            FormsAuthentication.SetAuthCookie(user.Username, createPersistentCookie);
        }

        public void SignOut()
        {
            FormsAuthentication.SignOut();
        }
    }
}
